package com.cy.ppj.dao.mapper.account;

import com.cy.ppj.model.domian.account.DealRecord;
import com.cy.ppj.model.query.DealRecordAdminQuery;
import com.cy.ppj.model.query.dealrecord.DealRecordQuery;

import java.util.List;
import java.util.Map;

import com.cy.ppj.model.vo.admin.dealrecord.DealRecordAdminVO;
import com.cy.ppj.model.vo.front.dealrecord.DealRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * @description: 账户
 * @author: zhongyy
 * @create: 2018年7月20日 下午8:09:08
 */
@Mapper
public interface DealRecordMapper extends BaseMapper<DealRecord>{

    void insertOne(DealRecord dealRecord);
	
	int queryDealRecordsByUserIdCount(DealRecordAdminQuery query);
	
	List<DealRecordAdminVO> queryDealRecordsByUserId(DealRecordAdminQuery query);

	int selectDealRecordCount(DealRecordQuery query);

	List<DealRecordVO> selectDealRecordList(DealRecordQuery query);
}
